<template>
	<section>
		<teacher v-if='userType == 1'></teacher>
		<student v-else></student>
	</section>
</template>

<script>
	import utils from '@/assets/js/utils';
	import teacher from './components/teacher';
	import student from './components/student';
	export default {
		components: {
			student,
			teacher
		},
		data() {
			return {
				userType:"2"
			};
		},
		
		created() {
			this.userType = utils.getSession('userType');
		}
	};
</script>

<style lang="scss" scoped>
	
</style>
